package com.vitech.javacertification.oo;

import java.awt.Container;

import javax.swing.JButton;
import javax.swing.JComponent;

public class Tester {

	public void myMethod(JButton s) {

		System.out.println("My button");

	}

	public void myMethod(JComponent sb) {

		System.out.println("My JComponent");

	}

	public void myMethod(Object sb) {

		System.out.println("My Object");

	}

	public static void main(String[] args) {

		Tester t = new Tester();
		t.myMethod(new Container());

	}

}
